package com.ruoyi.bus.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 bus_alert_config
 * 
 * @author ruoyi
 * @date 2021-09-08
 */
public class BusAlertConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 配置id */
    private Long id;

    /** MN编号id */
    @Excel(name = "MN编号id")
    private Long mnId;

    /** 监测点id */
    @Excel(name = "监测点id")
    private Long monitorId;

    /** 发送的手机号 */
    @Excel(name = "发送的手机号")
    private String tel;
    private BusAlert busAlert;
    private BusMonitor busMonitor;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMnId(Long mnId) 
    {
        this.mnId = mnId;
    }

    public Long getMnId() 
    {
        return mnId;
    }
    public void setMonitorId(Long monitorId) 
    {
        this.monitorId = monitorId;
    }

    public Long getMonitorId() 
    {
        return monitorId;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }

    public BusAlert getBusAlert() {
        return busAlert;
    }

    public void setBusAlert(BusAlert busAlert) {
        this.busAlert = busAlert;
    }

    public BusMonitor getBusMonitor() {
        return busMonitor;
    }

    public void setBusMonitor(BusMonitor busMonitor) {
        this.busMonitor = busMonitor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mnId", getMnId())
            .append("monitorId", getMonitorId())
            .append("tel", getTel())
            .toString();
    }
}
